<?php
	include_once('../sys/sys.php');
	include_once('./gfun.php');
	include_once('./funcs.php');
	header('Content-Type: text/html; charset=utf-8');
	
	$action = $_GET['action'];
	
	if ($action == 'elsesky'){
		//获取所有下载链接为NULL的
		$row = $DB->build_and_exec_query(array(
				'select' 	=> 'id,name',
				'from'		=> 'gfunapps',
				'where'		=>	"supportedos='null'",
		));
		while ($row = $DB->fetch_row($qid)) {
			$appid = $row[$id];
			//重新采集该ID
			get_single_app($DB,$gfun_app_pre,$appid);
			echo '应用<B><font color="red">'  . $row['name'] . "</font></B>重采集完毕<BR>";
			ob_flush();
		}
	}
	exit;
	
	
	
	
?>